
import com.gcliff.dao.glpks.CheckAppStatusDAO;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author krishna
 */
public class AppTest {

    protected static final Log log = LogFactory.getLog(AppTest.class);
    static ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(new String[]{"classpath:appContextWeb.xml"});
    static BeanFactory factory = (BeanFactory) appContext;
    static private CheckAppStatusDAO checkAppStatusDAO = (CheckAppStatusDAO) factory.getBean("checkAppStatusDAO");


    public static void main(String args[]) throws Exception {        
       
        Map<String, Object> hMap = checkAppStatusDAO.checkAppStatus();
        log.info((String) hMap.get("PO_MESSAGE"));
        
    }
}
